<T:ViewBase x:Class="WPFExcelReport.TMBEW02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWJJJJ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWJJJJ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWBELEG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWBELEG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWLFDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWLFDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWMAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWMAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWCHAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWCHAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWGNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWGNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWLO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWLO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWLB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWLB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=MBWLP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwMBEW.MBWLP}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsMBEW,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwMBEW}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwMBEW, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="MBWMANDANT"
                                    Binding="{Binding Path=MBWMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWJJJJ"
                                    Binding="{Binding Path=MBWJJJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWJJJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBELEG"
                                    Binding="{Binding Path=MBWBELEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBELEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWLFDNR"
                                    Binding="{Binding Path=MBWLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMAT"
                                    Binding="{Binding Path=MBWMAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWVAR"
                                    Binding="{Binding Path=MBWVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWCHAR"
                                    Binding="{Binding Path=MBWCHAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWCHAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWGNR"
                                    Binding="{Binding Path=MBWGNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWGNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWLO"
                                    Binding="{Binding Path=MBWLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWLB"
                                    Binding="{Binding Path=MBWLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWLP"
                                    Binding="{Binding Path=MBWLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAUFBKZ"
                                    Binding="{Binding Path=MBWAUFBKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAUFBKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWVPEINH"
                                    Binding="{Binding Path=MBWVPEINH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWVPEINH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAUFTYP"
                                    Binding="{Binding Path=MBWAUFTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAUFTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAUFKRS"
                                    Binding="{Binding Path=MBWAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAUFLFD"
                                    Binding="{Binding Path=MBWAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAUFPOS"
                                    Binding="{Binding Path=MBWAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWAFOLGE"
                                    Binding="{Binding Path=MBWAFOLGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWAFOLGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWANSNR"
                                    Binding="{Binding Path=MBWANSNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWANSNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWRPOS"
                                    Binding="{Binding Path=MBWRPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWRPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWNACHNR"
                                    Binding="{Binding Path=MBWNACHNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWNACHNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMEZU"
                                    Binding="{Binding Path=MBWMEZU, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMEZU}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWTYP"
                                    Binding="{Binding Path=MBWTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWKSTKRS"
                                    Binding="{Binding Path=MBWKSTKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWKSTKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWKST"
                                    Binding="{Binding Path=MBWKST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWKST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMNRKRS"
                                    Binding="{Binding Path=MBWMNRKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMNRKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMLFDNR"
                                    Binding="{Binding Path=MBWMLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMPOS"
                                    Binding="{Binding Path=MBWMPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBUDGET"
                                    Binding="{Binding Path=MBWBUDGET, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBUDGET}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBS"
                                    Binding="{Binding Path=MBWBS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWWERTDAT"
                                    Binding="{Binding Path=MBWWERTDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWWERTDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWME"
                                    Binding="{Binding Path=MBWME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWWERT"
                                    Binding="{Binding Path=MBWWERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWWERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWWEKORR"
                                    Binding="{Binding Path=MBWWEKORR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWWEKORR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBUCHBEN"
                                    Binding="{Binding Path=MBWBUCHBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBUCHBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBUCHDAT"
                                    Binding="{Binding Path=MBWBUCHDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBUCHDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWBUCHUHR"
                                    Binding="{Binding Path=MBWBUCHUHR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWBUCHUHR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWFC"
                                    Binding="{Binding Path=MBWFC, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWFC}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWINVBLG"
                                    Binding="{Binding Path=MBWINVBLG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWINVBLG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWCHARL"
                                    Binding="{Binding Path=MBWCHARL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWCHARL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWVERBME"
                                    Binding="{Binding Path=MBWVERBME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWVERBME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWVERBMEH"
                                    Binding="{Binding Path=MBWVERBMEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWVERBMEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWSTORKZ"
                                    Binding="{Binding Path=MBWSTORKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWSTORKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWKONDAT"
                                    Binding="{Binding Path=MBWKONDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWKONDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWMATABR"
                                    Binding="{Binding Path=MBWMATABR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWMATABR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWSCHICHT"
                                    Binding="{Binding Path=MBWSCHICHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWSCHICHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="MBWFILLER"
                                    Binding="{Binding Path=MBWFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=MBWFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
